<template>
  <div class="nav" ref="parent">
    <ul>
      <router-link to="/home" tag="li"   active-class="active"><a href="javascript:;">{{'首页'}}</a></router-link>
      <router-link to="/follow" tag="li" active-class="active"><a href="javascript:;">资讯</a></router-link>
      <router-link to="/column" tag="li" active-class="active"><a href="javascript:;">栏目</a></router-link>
    </ul>
  </div>
</template>
<script>
  export default{
    data(){
      return{
      }
    },
    name:'navbar',
    // mounted(){
    //  this.$http.post('/api/contact/addAccount',this.$qs.stringify({no:'',ct:'123456'})).then((data)=>{
    //    this.$http.post('/api/loginUser',this.$qs.stringify({accountName:'112318',password:'123456'})).then((data)=>{
    //    })
    //  })
    //
    //
    // },
    props:['msg']
  }
</script>
<style>
.nav{
  background-color: #494d4d!important;
}
</style>
